﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Class_Entity;
using BussinessObject;
using System.Data;
using System.Data.SqlClient;

public partial class WebApplication_EncapsulationDetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            loadData();

        }
    }

    //load products details to datalis
    private void loadData()
    {

       
        Encapsulation en = new Encapsulation();
        BOProducts pro = new BOProducts();

        en.Model = Session["ID"].ToString();

        DataSet ds = new DataSet();
        ds = pro.Detail_Encapsulation(en);
        DataList1.DataSource = ds;
        DataList1.DataBind();
        

    }
}